namespace Beetle;

public interface IServerHandler
{
	void Opened(ServerBase server);

	void SocketConnect(ServerBase server, ChannelCreatingArgs e);

	void ChannelCreated(ServerBase server, ChannelEventArgs e);

	void ChannelDisconnect(ServerBase server, ChannelDisposedEventArgs e);

	void ServerError(ServerBase server, TcpServerErrorArgs e);

	void ChannelError(ServerBase server, ChannelErrorEventArgs e);

	void ChannelReceiveMessage(ServerBase server, PacketRecieveMessagerArgs e);

	void Disposed(ServerBase server);
}
